package com.luomu.base.control.controller;

import com.luomu.base.api.cookBook.simple.bo.ApiReqBO;
import com.luomu.base.api.cookBook.simple.bo.ApiRspBO;
import com.luomu.base.api.cookBook.simple.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/apis/control/biz")
public class BizController {

    @Autowired
    private ApiService apiService;

    @RequestMapping(value = "/api",method = RequestMethod.POST)
    public ApiRspBO apiApi(@RequestBody ApiReqBO reqBO) {
        return apiService.apiApi(reqBO);
    }
}
